//
// File:	View.hpp
// Author:	Thomas TISSOT-DUPONT
// Login:	<thomas.tissotdupont@free.fr>
//
// Created:	21/04/2010 at 09:53:00
// Purpose:	
//
#ifndef VIEW_HPP
#define VIEW_HPP

#include "IView.hpp"

class View : public IView
{
public:
						View(float = 0.0f, float = 0.0f, unsigned int = 0, unsigned int = 0);
						~View();

public:
	void				SetViewCenterX(float);
	void				SetViewCenterY(float);
	float				GetViewCenterX() const;
	float				GetViewCenterY() const;

public:
	void				SetViewWidth(unsigned int);
	void				SetViewHeight(unsigned int);
	unsigned int		GetViewWidth() const;
	unsigned int		GetViewHeight() const;

public:
	bool				IsPointInside(float flX, float flY, float flBoundMultiplier = 1.0f) const;
	bool				IsRectInside(float flCenterX, float flCenterY, unsigned int iWidth, unsigned int iHeight, float flBoundMultiplier = 1.0f) const;

private:
	unsigned int		m_iRectSize[2];
	float				m_flCenter[2];
};

#endif //!VIEW_HPP
